<div class="tools">
	<ul class="toolbar">
		<li class="click">
			<a href="<?php echo ADMIN_DIR.'role/add'; ?>" >
				<span>
					<img src="/houtai/images/t01.png" alt="">
				</span>
				添加
			</a>
		</li>
	</ul>	
</div>
<table class="imgtable">
	<thead>
		<tr>
			<th>角色ID</th>
			<th>角色名称</th>
			<th>栏目</th>
			<th>操作</th>
		</tr>
	</thead>
	<?php if (!empty($list)): ?>
		<tbody>
			<?php foreach ($list as $k => $v): ?>
				<tr>
					<td><?php echo $v['id'] ?></td>
					<td><?php echo $v['name'] ?></td>
					<td>
						<?php if ( !empty($v['menuIdList']) ): ?>
							<?php foreach ($v['menuIdList'] as $menuID): ?>
								<?php if (!empty($menuList[$menuID])): ?>
									<span><?php echo $menuID,':',$menuList[$menuID]['title']; ?></span>
								<?php endif; ?>
							<?php endforeach; ?>
						<?php endif; ?>
					</td>
					<td>
						<a class="ibtn" href="<?php echo ADMIN_DIR.'role/update?rid='.$v['id'] ?>">修改</a>
						<a class="ibtn" href="<?php echo ADMIN_DIR.'role/delete?rid='.$v['id'] ?>">删除</a>
					</td>
				</tr>
			<?php endforeach; ?>
		</tbody>
	<?php endif; ?>
</table>

